Enable workflows to request a TEE#2004
Conversation
|
f98af19 to
f4e51a4
Compare
f4e51a4 to
937bc20
Compare
8441040 to
da5bccc
Compare
d5fedb0 to
e01fae1
Compare
…, not just region.
e01fae1 to
8e8598d
Compare
| func SendSubscription(subscriptions *sdk.TriggerSubscriptionRequest) { | ||
| execResult := &sdk.ExecutionResult{Result: &sdk.ExecutionResult_TriggerSubscriptions{TriggerSubscriptions: subscriptions}} | ||
| sendResponse(BufferToPointerLen(Must(proto.Marshal(execResult)))) | ||
| os.Exit(0) |
There was a problem hiding this comment.
no, it should have been there the whole time. Other tests just didn't do anything after calling it.
There was a problem hiding this comment.
Can you leave a comment explaining? This doesn't make any sense to me without context
There was a problem hiding this comment.
The SendError function above it does the same thing.
It's a very dumbed down version of this code in the real SDK.
The internal one here is for bootstrapping, we can test the standard tests work, and that we can do things correctly with modules without needing the SDK.
The SDK needs the standard tests to verify correct behaviour, so we can't create a circular dependency. Also, the goal is to test the host/guest interactions at a lower level to ensure it works before we ask the SDKs to implement it for their language
|
@erikburt Is API Diff failing here? These aliases are meant to be 100% compatible. Edit: Wait, did it correct itself? maybe I just saw a stale comment |
Oh actually it is updating the two comments separately I guess? That may be confusing. But the main problem is that aliases seem to show as breaking. |
* Add TeeEnabled to template generator, and add a new requirements callback * Add region * Requirements selecting runner * update proto and fix requirement not met test * Update proto, allow individual triggers to choose where to run * Add max time for requirements selection * Use subscription for the trigger requirement * Main module satisfies requirements * remove unused hook from module, the selecting one is now responsible for the decision * Hook to ask implementation to determine if it supports regions * Update protos to use full TEE requirement and not use bytes for the embedded request * Send full requirements to modules that accept them * Regions with any is allowed too, and let the TEE say everything it is, not just region. * Update protos for unknown TEE Type * Fix misc tests that were fixed on a different branch, update to use protos from the cap-devs * Remove file left from prior genreation and update to use the one from the public package * AI feedback addressed * Pin artifacts test build * Undo whitespaces changes to unrealated files * Cleaner go version pinning * Undo whitespaces changes to unrealated files * Use slices.Contains in template_generator * Undo whitespaces changes to unrealated files * Revert whitespace changes for real...
No description provided.